package com.jzy.common.utils;

/**
 * 
 * 类描述： 自定义异常
 * 创建者： jiaozy
 * 项目名称： ssm
 * 创建时间： 2018年12月21日 上午10:30:54
 * Email：jzy19890914@gmail.com
 */
public class MyException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private String msg;
    private int code = 500;
    
    public MyException() {}
    
    public MyException(String msg) {
    	super(msg);
    	this.msg=msg;
    }
    
    public MyException(String msg,Throwable e) {
    	super(msg,e);
    	this.msg=msg;
    }
    
    public MyException(String msg,Throwable e,int code) {
    	super(msg,e);
    	this.msg=msg;
    	this.code=code;
    }
    
    public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
}
